.PHONY: all build clean

BINS = onyx-indexer onyx-daemon onyx-hook onyx-prefetcher onyx-benchmark

build:
	@mkdir -p bin
	@for bin in $(BINS); do \
		echo "Building $$bin..."; \
		go build -o bin/$$bin ./cmd/$$bin; \
	done

clean:
	rm -rf bin
